
package vv.lines.core;

import vv.lines.core.context.ContextHolder;
import vv.lines.core.context.IContext;
import vv.lines.view.View;

/**
 *
 * @author vpotapenko
 */
public abstract class VisualObject extends ContextHolder {

    private View view;

    public VisualObject(IContext context) {
        super(context);
        setView(createView());
    }

    public View getView() {
        return view;
    }

    protected abstract View createView();

    public void setView(View view) {
        this.view = view;
    }
}
